@props([
    'name' => 'target_amount',
    'default_values' => [20, 50, 100],
    'init_values' => ['','','','','','']
])

<div class="container-fluid">
    <div class="row">
        @foreach($default_values as $key => $value)
            <div class="col-md-4 mb-1">
                <div class="input-group">
                    <span class="input-group-prepend">
                        <span class="input-group-text bg-white">￥</span>
                    </span>
                    <input type="text" name="{{ $name }}[]" class="form-control" placeholder="默认 {{ $value }}"  value="{{$init_values[$key]}}">
                </div>
            </div>
        @endforeach
    </div>
</div>
